home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD ROM Paradise Collection 4
/
CD ROM Paradise Collection 4 1995 Nov.iso
/
program
/
swags_z.zip
/
STRINGS.SWG
/
0056_Get number STRING w-ZEROS.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1993-09-26
|
706b
|
16 lines
{*****************************************************************************
* Function ...... StrZero()
* Purpose ....... To return a number as a string with leading zeros
* Parameters .... Num Number to make into a string
* Len Length of resultant string
* Returns ....... <Num> as a string, <Len> in length with leading zeros
* Notes ......... Uses the functions PadL and ITOS
* Author ........ Martin Richardson
* Date .......... May 13, 1992
*****************************************************************************}
FUNCTION StrZero( Num, Len : LONGINT ) : STRING;
BEGIN
StrZero := PadL( ITOS( Num, 0 ), Len, '0' );
END; { StrZero }